home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
ansitape.z
/
ansitape
Wrap
Text File
|
1998-10-20
|
7KB
|
199 lines
aaaannnnssssiiiittttaaaappppeeee((((1111)))) aaaannnnssssiiiittttaaaappppeeee((((1111))))
NNNNAAAAMMMMEEEE
ansitape - ANSI standard tape handler
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
aaaannnnssssiiiittttaaaappppeeee [key] [keyargs] [files]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_a_n_s_i_t_a_p_e reads and writes magnetic tapes written in ANSI standard format
(called ``Files-11'' by DEC). Tapes written by _a_n_s_i_t_a_p_e are labeled with
the first six characters of the machine name by default. Actions are
controlled by the _k_e_y argument. The _k_e_y is a string of characters
containing at most one function letter. Other arguments to the command
are a tape label and filenames specifying which files are to be written
onto or extracted from the tape.
Note that this version is designed to work with text files that is, those
with no more than 2044 bytes without a newline character. Binary files
are unlikely to be handled correctly on either creation or extraction.
The function portion of the key is specified by one of the following
letters:
rrrr The named files are written at the end of the tape. The cccc
function implies this.
xxxx The named files are extracted from the tape. If no file argument
is given, the entire contents of the tape are extracted. Note
that if the tape has duplicated filenames, only the last file of
a given name can be extracted.
tttt The names of the specified files are listed each time they occur
on the tape. If no file argument is given, all files on the tape
are listed.
cccc Create a new tape; writing begins at the beginning of the tape
instead of after the last file. This command implies rrrr....
The following characters may be used in addition to the letter that
selects the function desired.
ffff This argument allows the selection of a different tape device.
The next word in the _k_e_y_a_r_g_s list is taken to be the full name of
a local device on which to write the tape. The default is
/_d_e_v/_t_a_p_e.
nnnn The nnnn option allows the user to specify, as the next argument in
the _k_e_y_a_r_g_s list, a control file containing the names of files to
put on the tape. If the filename is '-', the control file will
instead be read from standard input. The control file contains
one line for each file placed on the tape. Each line has two
names, the name of the file on the local machine and its name
when placed on the tape. This allows for a convenient flattening
PPPPaaaaggggeeee 1111
aaaannnnssssiiiittttaaaappppeeee((((1111)))) aaaannnnssssiiiittttaaaappppeeee((((1111))))
of hierarchies when placing them on tape. If the second name is
omitted, the UNIX filename will also be used on the tape. This
argument can only be used with the rrrr and cccc functions.
llll The llll option allows the user to specify the label to be placed on
the tape. The next argument in the _k_e_y_a_r_g_s list is taken as the
tape label, which will be space padded or truncated to six
characters. This option is meaningless unless cccc is also
specified.
vvvv Normally _a_n_s_i_t_a_p_e works relatively silently. The vvvv (verbose)
option causes it to type information about each file as it
processes it.
bbbb The bbbb option allows the user to select the block size to be used
for the tape. By default, _a_n_s_i_t_a_p_e uses the maximum block size
permitted by the ANSI standard, 2048. Some systems will permit a
much larger block size, and if large files are being put on the
tape, it may be advantageous to do so. _a_n_s_i_t_a_p_e takes the next
argument of the _k_e_y_a_r_g_s list as the block size for the tape.
Values below 18 or above 32k will be limited to that range. The
standard scale factors b=512 and k=1024 are accepted.
FFFF The FFFF flag allows _a_n_s_i_t_a_p_e to write ANSI 'D' format-fixed
record-length tapes. The next two keyargs must be the recordsize
and blocksize, with the same scale factors and range limits as
the bbbb option. The files to be written by the FFFF flag must be in
fixed format on the UNIX end-all lines should be _e_x_a_c_t_l_y rrrreeeeccccoooorrrrdddd----
ssssiiiizzzzeeee bytes long plus a terminating newline (which will be
discarded). Note that this is exactly the same format produced
by _a_n_s_i_t_a_p_e when reading an ANSI 'D' format tape.
_a_n_s_i_t_a_p_e will not copy directories, character or block special files,
symbolic links, sockets, or binary executables. Attempts to put these on
tape will result in warnings, and they will be skipped completely.
FFFFIIIILLLLEEEESSSS
/dev/tape default tape drive
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
A warning message will be generated when a record exceeds the maximum
record length, and the affected file will be truncated.
BBBBUUUUGGGGSSSS
_a_n_s_i_t_a_p_e quietly truncates names longer than 17 characters.
Multivolume tapes can be read (provided no files cross the volume
boundary) but not written.
PPPPaaaaggggeeee 2222
aaaannnnssssiiiittttaaaappppeeee((((1111)))) aaaannnnssssiiiittttaaaappppeeee((((1111))))
SEE ALSO
vmsprep(1), mtio(7).
PPPPaaaaggggeeee 3333